<%@ include file="/WEB-INF/views/include/header.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="layui-collapse">

    <c:forEach items="${showMenuVos}" var="menu" varStatus="i">
        <div class="layui-colla-item">
            <h2 class="layui-colla-title" title="${menu.menuname}">
                    ${menu.menuname}
                <span style="float: right">
                    <a data-method="update" menuid="${menu.id}" class="layui-btn layui-btn-primary layui-btn-small updatemenu">
                <i class="layui-icon">&#xe642;</i>
            </a>
            <a data-method="notice" menuid="${menu.id}" class="layui-btn layui-btn-primary layui-btn-small delmenu">
                <i class="layui-icon">&#xe640;</i>
            </a>
                </span>
            </h2>

            <div class="layui-colla-content layui-show">
                <table class="layui-table" lay-even="" lay-skin="nob">
                    <colgroup>
                        <col width="200">
                        <col width="1300">
                        <col width="60">
                        <col>
                    </colgroup>
                    <tbody>
                    <c:forEach items="${menu.itemmenu}" var="item">
                        <tr>
                            <td>${item.menuname}</td>
                            <td>${item.url}</td>
                            <td><a data-method="update" menuid="${item.id}" class="layui-btn layui-btn-small layui-btn-normal updatemenu"><i class="layui-icon"></i></a></td>
                            <td><a data-method="notice" menuid="${item.id}" class="layui-btn layui-btn-small layui-btn-danger delmenu"><i class="layui-icon"></i></a></td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </c:forEach>
</div>